<template>
	<view class="content">
		<navbar title='库存产品'>
		</navbar>
		<view class="content">
			<u-sticky offset-top="0">
				<view class="tablei">
					<view class="leiitem">
						<view class="tabitem" :class="ishead==2?'tactive':''" @click="gethead(2)">官方进货</view>
						<view class="tabitem " :class="ishead==1?'tactive':''" @click="gethead(1)">进货记录</view>
						
					</view>
				</view>
				<view class="tuanone">
					<u-tabs style="width: 100%;" :list="classlist" active-color="#1A1A1A" inactive-color="#666666" :is-scroll="true" :current="current" @change="change"></u-tabs>
				</view>
			</u-sticky>
			<view class="menlist" v-if="ishead == 1">
				<view class="menitem" v-for="(item,index) in list" :key="index" @click.stop="getDetail(item)">
					<image class="tu" :src="item.image" lazy-load mode="aspectFill" />
					<view class="menone">
						<view class="menhead">
							<text class="name">{{item.title}}</text>
						</view>
						<text class="shengku">累计进货 {{ item.stock }}</text>
						<view class="menhead mennav">
							<text class="ju">￥{{ item.price }}</text>
							<!-- <view class="tiview" @click.stop="gettihuo(item,index)" v-if="item.goods_nums==0&&ishead==1">提货</view> -->
							<view class="tiview" @click.stop="gettihuo(item,index)" v-if="item.goods_nums==0&&ishead==2">进货</view>
							<u-number-box class="ml" v-if="item.goods_nums!=0" v-model="item.goods_nums" @change="changenum($event,item)"></u-number-box>
						</view>
					</view>
				</view>
				<u-loadmore :status="status" @loadmore="loadmore" />
			</view>
			<view class="menlist" v-if="ishead == 2">
				<view class="menitem" v-for="(item,index) in list" :key="index" @click.stop="getDetail(item)">
					<image class="tu" :src="item.image" lazy-load mode="aspectFill"/>
					<view class="menone">
						<view class="menhead">
							<text class="name">{{item.title}}</text>
						</view>
						<text class="shengku">剩余库存 {{ item.stock }}</text>
						<view class="menhead mennav">
							<text class="ju">￥{{ item.price }}</text>
							<view class="tiview" @click.stop="gettihuotwo(item,index)" v-if="item.goods_nums==0&&ishead==1">提货</view>
							<view class="tiview" @click.stop="gettihuotwo(item,index)" v-if="item.goods_nums==0&&ishead==2">进货</view>
							<u-number-box class="ml" v-if="item.goods_nums!=0" v-model="item.goods_nums" @change="changenum($event,item)"></u-number-box>
						</view>
					</view>
				</view>
				<u-loadmore :status="status" @loadmore="loadmore" />
			</view>
		</view>

		<view class="botview">
			<text class="kunum">当前库存:{{ stock }}</text>
			<view class="tjiaone" @click="gettianjia">添加库存</view>
			<view class="tjia" v-if="ishead==2" @click="getquqeren">确认</view>
		</view>

		<u-popup  v-model="addkulpop" mode="center" width="80%" ref="auth" :mask-close-able="false" :custom="true" :mask-click="false" @close="closekucun">
			<view class="popone">
                <view class="phonenav">
                    <view class="cha" @click="closekucun">
                        <image class="icon_gbcha" src="@/pages_client/static/img/icon_gbicon.png" mode="" />
                    </view>
                    <text class="jiename">购买库存</text>
                    <view class="queli">
						<text>购买库存数量</text>
						<u-number-box class="" v-model="nums" :min="1"></u-number-box>
                    </view>
                    <view class="dianbtn" @click="temClick">
                        <text class="bm">确认</text>
                    </view>
                    <!-- <text class="kaolv"  @click="closeedit">取消</text> -->
                </view>
                
            </view>
		</u-popup>


		<!-- 地址弹窗选择 -->
		 <u-popup  v-model="adresspop" mode="bottom" width="100%" ref="auth" :mask-close-able="false" :custom="true" :mask-click="false" @close="adresspop = false">
			<view class="popone yjiao">
                <view class="phonenav">
                    <view class="cha" @click="adresspop = false">
                        <image class="icon_gbcha" src="@/pages_client/static/img/icon_gbicon.png" mode="" />
                    </view>
                    <text class="jiename">选择地址</text>
                    <view class="dione" @click="getadress">
						<view class="diname" v-if="!addressinfo.id">
							<text class="dinametxt">请选择地址</text>
							<u-icon name="arrow-right" color="#222" size="28" style="margin-left: auto;"></u-icon>
						</view>
						<view class="diname" v-if="addressinfo.id">
							<text class="dinametxt">{{addressinfo.province.name+addressinfo.city.name+addressinfo.area.name+addressinfo.address}}</text>
							<u-icon name="arrow-right" color="#222" size="28" style="margin-left: auto;"></u-icon>
						</view>
						<view class="dimiao" v-if="addressinfo.id">
							{{addressinfo.name+' ' +addressinfo.mobile}}
						</view>
					</view>
                    <view class="dianbtn" @click="temClicktwo">
                        <text class="bm">确认</text>
                    </view>
                    <!-- <text class="kaolv"  @click="closeedit">取消</text> -->
                </view>
                
            </view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		components: {
		},
		data() {
			return {
				list: [{
					name: '全部'
				}, {
					name: '水光美白'
				}, {
					name: '光学仪器'
				},{
					name: '全部'
				}, {
					name: '水光美白'
				}, {
					name: '光学仪器'
				},{
					name: '全部'
				}, {
					name: '水光美白'
				}, {
					name: '光学仪器'
				},{
					name: '全部'
				}, {
					name: '水光美白'
				}, {
					name: '光学仪器'
				}],
				current: 0,
				value:1,
				ishead:2,//我的库存 2官方进货
				classlist:[],
				classitem:{
					id:'0'
				},
				list: [],
				page: 1,
				limit: 10,
				last_page: 1,
				status: "loadmore",
				user:{},
				stock:0,//自己可以取的库存
				popid:'',
				popitem:{},
				addkulpop:false,
				nums:1,
				adresspop:false,

				addressinfo:{
					name:'',
					mobile:'',
					province:{
						name:'',
					},
					city:{
						name:'',
					},
					area:{
						name:'',
					},
					address:''
				},
				goods:[]
			}
		},
		onLoad(option) {
			if(option.shop_id){
				this.shop_id = option.shop_id
			}
			this.getcate();//分类
			this.getuser()
			this.getmoren();//获取默认地址
		},
		onShow() {
			let that = this
			uni.$on('isRefreshadress',function(data){
				that.addressinfo = data
				console.log('监听到事件来自返回的参数：' + JSON.stringify(data));
                // TODO 下面执行刷新的方法
			})
		},
		onReachBottom: function () {
			this.loadmore();
		},

		methods: {
			async getmoren(){
				let res = await this.$u.api.addressdefault({
				});
				this.addressinfo = res
			},
			async getuser(){
				let res = await this.$u.api.getData({
				});
				this.user = res.data
				this.stock = res.data.stock

			},
			getadress(){
				this.navrouter('/pages_client/twoPage/Adress?type=fabu')
			},
			async getcate() {
				let res = await this.$u.api.getCate({
				});
				// let a = {
				// 	id:0,
				// 	name:'我的'
				// }
				let shuzu = res
				shuzu = res
				// shuzu.unshift(a)
				this.classlist = shuzu
				if(this.classitem==''||!this.classitem){
					this.classitem = this.classlist[0]
				}
				this.getList();//数据合集
			},
			closeteam(){
				this.teampopshow = false
			},
			change(index) {
				this.current = index;
				this.classitem = this.classlist[index]
				this.getClear()
				this.getuser()
			},
			gethead(e){
				this.ishead = e
				this.getClear()
			},
			// getdetail(item){
			// 	this.navrouter('/pages_client/mine/OrderDetail')
			// },
			closeshai(){
				this.shaipopshow = false
			},
			async getList(){//列表数据
				console.log(this.classitem)
				if(this.ishead == 1){
					let res = await this.$u.api.getShopGoodsList({
						limit:this.limit,
						page:this.page,
						shop_id:this.shop_id,
						cid:this.classitem.id
					});
					this.last_page = res.lastpage
					let list = res.list;
					for(let i in list){
						list[i].goods_nums = 0
					}
					this.list = this.page == 1 ? list : [...this.list, ...list];	
					if(res.list==''||Number(list.length)<Number(this.limit)||Number(this.page)>Number(this.last_page)){
						this.status = 'nomore';
					}
				}else if(this.ishead == 2){
					let res = await this.$u.api.getGuanGoodsList({
						limit:this.limit,
						page:this.page,
						shop_id:this.shop_id,
						cid:this.classitem.id
					});
					this.last_page = res.lastpage
					let list = res.list;
					for(let i in list){
						list[i].goods_nums = 0
					}
					this.list = this.page == 1 ? list : [...this.list, ...list];	
					if(res.list==''||Number(list.length)<Number(this.limit)||Number(this.page)>Number(this.last_page)){
						this.status = 'nomore';
					}
				}
				
				
			},
			loadmore() {
				let page = this.page;
				// let last_page = this.last_page;
				if (this.status == 'loadmore') {
					this.page++;
					this.getList();
				}
			},
			getClear(){
				this.list = []
				this.page = 1,
				this.status= "loadmore"
				this.getList()
			},
			async gettihuo(item,index){
				let list = this.list
				for(let i in list){
					list[i].goods_nums = 0
				}
				list[index].goods_nums = 1
				this.list = list
				this.popid = item.id
				this.popitem = item
			},
			async gettihuotwo(item,index){//官方进货 多选
				let list = this.list
				// for(let i in list){
				// 	list[i].goods_nums = 0
				// }
				list[index].goods_nums = 1
				this.list = list
				this.popid = item.id
				this.popitem = item
			},
			async getquqeren(){
				if(this.ishead == 1){
					//提货
					if(!this.popitem.goods_nums||this.popitem.goods_nums==0){
						this.$u.toast("请选择商品");
						return;
					}
					this.adresspop = true
					// let res = await this.$u.api.Tihuo({
					// 	shop_id:this.shop_id,
					// 	goods_id:this.popid,
					// 	goods_nums:this.popitem.goods_nums
					// });
					// this.$u.toast("提货成功");
					// this.getClear()
				}else if(this.ishead == 2){
					let goods = []
					let list = this.list 
					for(let i in list){
						if(list[i].goods_nums!=0){
							let a = {}
							a.goods_id = list[i].goods_id
							a.goods_nums = list[i].goods_nums
							goods.push(a)
						}
					}
					console.log(goods)
					if(goods == ''){
						this.$u.toast("请选择商品");
						return;
					}
					this.goods = goods
					this.adresspop = true
					// 
					// this.$u.toast("进货成功");
					// 
				}
				
			},
			async getpay(id){
					let res = await this.$u.api.getOrderByJinhuo({
						order_id:id
					});
					uni.requestPayment({
						appId: res.appid,
						nonceStr: res.nonceStr,
						package: res.package,
						paySign: res.paySign,
						signType: res.signType,
						timeStamp: res.timeStamp,
						success: (e) => {
							console.log(e)
							uni.showToast({
								title: '支付成功',
								icon: 'success',
								duration: 2500,
							})
							setTimeout(() => {
								this.getClear()
								this.adresspop = false
							}, 1000);
						},
						fail: (e) => {
							console.log(e)
							this.$u.toast("支付失败");
							setTimeout(() => {
								// this.getClear()
								// this.adresspop = false
							}, 1000);
							// uni.switchTab({ url: '/pages/tabbar/my' })
							// uni.showModal({
							//     content: "支付失败,原因为: " + e.errMsg,
							//     showCancel: false
							// })
						}
					})
				},
			changenum(e,item){
				this.popitem = item
			},
			gettianjia(){
				this.nums = 1
				this.addkulpop = true
			},
			closekucun(){
				this.addkulpop = false
			},
			async temClick(){
				let res = await this.$u.api.addStockOrder({
					nums:this.nums,
					shop_id:this.shop_id,
				});
				this.getpaytwo(res.order_id)

			},
			async getpaytwo(id){
				let res = await this.$u.api.getOrderByStock({
					order_id:id
				});
				uni.requestPayment({
					appId: res.appid,
					nonceStr: res.nonceStr,
					package: res.package,
					paySign: res.paySign,
					signType: res.signType,
					timeStamp: res.timeStamp,
					success: (e) => {
						console.log(e)
						uni.showToast({
							title: '支付成功',
							icon: 'success',
							duration: 2500,
						})
						this.closekucun()
						setTimeout(() => {
							this.getuser()
						}, 1000);
					},
					fail: (e) => {
						console.log(e)
						this.$u.toast("支付失败");
						setTimeout(() => {
							this.getuser()
						}, 1000);
						// uni.switchTab({ url: '/pages/tabbar/my' })
						// uni.showModal({
						//     content: "支付失败,原因为: " + e.errMsg,
						//     showCancel: false
						// })
					}
				})
			},
			async temClicktwo(){
				//点击地址确定
				if(!this.addressinfo.id){
					this.$u.toast("请先选择地址");
					return;
				}
				if(this.ishead == 1){
					//提货
					let res = await this.$u.api.Tihuo({
						shop_id:this.shop_id,
						goods_id:this.popid,
						goods_nums:this.popitem.goods_nums,
						address_id:this.addressinfo.id
					});
					this.$u.toast("提货成功");
					this.getClear()
					this.adresspop = false
				}else if(this.ishead == 2){
					let res = await this.$u.api.Jinhuo({
						shop_id:this.shop_id,
						// goods_id:this.popid,
						// goods_nums:this.popitem.goods_nums
						goods:JSON.stringify(this.goods),
						address_id:this.addressinfo.id
					});
					if(res.status == 0){
						//我的库存不足
						this.$u.toast("我的库存不足");
						let resd = await this.$u.api.addJinhuoOrder({
							shop_id:this.shop_id,
							// goods_id:this.popid,
							// goods_nums:this.popitem.goods_nums
							goods:JSON.stringify(this.goods),
							address_id:this.addressinfo.id
						});
						console.log(resd)
						this.getpay(resd.order_id)
					}else if(res.status == -1){
						//商品库存不足
						this.$u.toast("商品库存不足");
					}else if(res.status == 1){
						//成功
						this.$u.toast("操作成功");
						this.getClear()
						this.getuser()
					}
					this.adresspop = false
				}
				
			},
			getDetail(item){
				this.navrouter('/pages_client/twoPage/ShopDetail?type=1'+'&id='+item.goods_id+"&jinhuo=1")
			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #f9f9f9;
	}
	.content{
		background-color: #f9f9f9;
		padding-bottom: 130rpx;
		.tuanone{
			background-color: #fff;
			padding: 15rpx 30rpx;
			display: flex;
			flex-direction: row;
			align-items: center;
			width: 100%;
			.tuhead{
				max-width: 80%;
				white-space: nowrap;
				.tuitem{
					padding: 8rpx 20rpx;
					background: #F5F5F5;
					border-radius: 10rpx;
					margin-right: 20rpx;
					font-weight: 500;
					font-size: 26rpx;
					color: #333333;
					display: inline-block;
				}
				.tactive{
					background: #52443B;
					color: #fff;
				}
			}
			.icon_tx{
				margin-left: auto;
				width: 40rpx;
				height: 40rpx;
			}
		}	
	}
	.nlist{
		padding: 20rpx;
		display: flex;
		flex-direction: column;
		.nitem{
			padding: 20rpx 25rpx;
			background: #FFFFFF;
			border-radius: 30rpx;
			.nione{
				display: flex;
				flex-direction: row;
				align-items: center;
				.tous{
					width: 81rpx;
					border-radius: 50%;
					height: 81rpx;
					margin-right: 15rpx;
				}
				.niright{
					width: 82%;
					display: flex;
					flex-direction: column;
					.rione{
						display: flex;
						flex-direction: row;
						align-items: center;
						.riname{
							max-width: 80%;
							display: inline-block;
							font-weight: bold;
							font-size: 32rpx;
							color: #333333;
						}
						.hyuan{
							width: 80rpx;
							height: 32rpx;
							background: linear-gradient(-90deg, #272727, #4D4D4D);
							border-radius: 6rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							font-weight: 500;
							font-size: 22rpx;
							color: #FFFFFF;
							margin-left: 10rpx;
						}
						.idname{
							font-weight: 400;
							font-size: 24rpx;
							color: #999999;
						}
						.hui{
							margin-left: 40rpx;
						}

					}
					.mttwo{
						margin-top: 15rpx;
					}
				}
				.comm_icon_next{
					margin-left: auto;
					width: 24rpx;
					height: 24rpx;
				}
			}
			.zheview{
				border-top: 1rpx solid #eee;
				display: flex;
				flex-direction: column;
				margin-top: 20rpx;
				padding-top: 20rpx;
				.zheitem{
					display: flex;
					flex-direction: row;
					flex-wrap: wrap;
					.items{
						width: 50%;
						display: flex;
						flex-direction: row;
						align-items: center;
						margin-bottom: 10rpx;
						.ileft{
							font-weight: 500;
							font-size: 24rpx;
							color: #999999;
						}
						.ival{
							font-weight: 500;
							font-size: 26rpx;
							color: #333333;
						}
					}
				}
				.shengbtn{
					display: flex;
					flex-direction: row;
					justify-content: flex-end;
					padding: 0 20rpx 20rpx 0;
					.sbtn{
						padding: 15rpx 25rpx;
						background: #52443B;
						border-radius: 16rpx 16rpx 16rpx 16rpx;
						font-weight: bold;
						font-size: 28rpx;
						color: #FFFFFF;
						margin-left: 20rpx;
					}
				}
			}
		}
	}
	.botview{
		position: fixed;
		height: 120rpx;
		width: 100%;
		bottom: 0;
		background-color: #fff;
		z-index: 10;
		padding: 0 30rpx;
		display: flex;
		align-items: center;
		.kunum{
			color: #333;
			font-size: 30rpx;
			margin-right: 30rpx;
			font-weight: 500;
		}
		.tjia{
			// width: 90%;
			flex: 1;
			height: 90rpx;
			background: #52443B;
			border-radius: 16rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: bold;
			font-size: 28rpx;
			color: #FFFFFF;
			margin-left: 30rpx;
		}
		.tjiaone{
			flex: 1;
			height: 90rpx;
			background: #52443B;
			border-radius: 16rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: bold;
			font-size: 28rpx;
			color: #FFFFFF;
			// margin-right: 30rpx;
		}
	}
	.menlist{
		padding:30rpx 0;
	}
	.shengku{
		font-weight: 500;
		font-size: 28rpx;
		color: #999999;
		display: block;
		margin-top: 8rpx;
	}
	.tablei{
		padding: 10rpx 90rpx 8rpx;
		display: flex;
		flex-direction: row;
		background-color: #fff;
		z-index: 100;
		
		.leiitem{
			height: 68rpx;
			background: #F3F3F3;
			border-radius: 34rpx;
			display: flex;
			flex-direction: row;
			width: 100%;
			.tabitem{
				width: 50%;
				height: 100%;
				position: relative;
				display: flex;
				align-items: center;
				justify-content: center;
				font-weight: bold;
				font-size: 32rpx;
				color: #666666;
			}
			.tactive{
				background: #52443B;
				border-radius: 34rpx;
				color: #fff;
			}
		}
	}
	.menitem{
                display: flex;
                flex-direction: row;
                align-items: center;
                background: #FFFFFF;
                border-radius: 24rpx;
                padding: 25rpx;
                margin: 0 30rpx 20rpx;
                .tu{
                    width: 180rpx;
                    height: 180rpx;
                    margin-right: 20rpx;
                    border-radius: 20rpx;
                }
                .menone{
                    display: flex;
                    flex-direction: column;
                    width: 68%;
                    // height: 100%;
                    .menhead{
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        .name{
                            font-weight: bold;
                            font-size: 32rpx;
                            color: #272727;
                        }
                        .yingye{
                            font-weight: 500;
                            font-size: 26rpx;
                            color: #24B924;
                        }
                        .yingtime{
                            font-weight: 500;
                            font-size: 26rpx;
                            color: #333333;
                            display: inline-block;
                            margin-left: 18rpx;
                        }
                        .icon_dw{
                            width:22rpx;
                            height: 24rpx;
                            margin-right: 8rpx;

                        }
                        .ju{
                            font-weight: 500;
                            font-size: 28rpx;
                            color: #1A1A1A;
                        }
                        .juli{
                            margin-left: 30rpx;
                            font-weight: 500;
                            font-size: 24rpx;
                            color: #999999;
                            display: inline-block;
                            max-width: 70%;
                        }
						.tiview{
							margin-left: auto;
							width: 200rpx;
							height: 68rpx;
							background: #52443B;
							border-radius: 16rpx 16rpx 16rpx 16rpx;
							display: flex;
							align-items: center;
							justify-content: center;
							font-weight: bold;
							font-size: 28rpx;
							color: #FFFFFF;
						}
                    }
                    .mennav{
                        margin-top: 35rpx;
                    }
                }
            }
        // }

		.popone{
        width: 100%;
        background: #FFFFFF;
        border-radius: 30rpx;
        // height: 530rpx;
        .bg{
            position: absolute;
            width: 100%;
            height: 300rpx;
            border-radius: 30rpx 30rpx 0 0 ;
        }
        .icon_gbcha{
            width: 40rpx;
            height: 40rpx;
            margin-left: auto;
            position: absolute;
            right: 30rpx;
            top: 30rpx;
        }
        .yuedu{
            height: 80rpx;
            display: flex;
            padding: 0 30rpx;
            align-items: center;
            .icon_xz_n{
                width: 36rpx;
                height: 36rpx;
                margin-right: 8rpx;
            }
            .xy{
                font-weight: 500;
                font-size: 20rpx;
                color: #999999;
                display: block;
                width: 90%;
            }
            .xyhu{
                color: rgba(234, 89, 24, 1);
            }
        }
        .kaolv{
            font-weight: bold;
            font-size: 28rpx;
            color: #666666;
            display: block;
            text-align: center;
            margin-top: 20rpx;
        }
        .phonenav{
            position: relative;
            // margin: 30rpx;
            display: flex;
            flex-direction: column;
            // justify-content: center;
            align-items: center;
            padding: 40rpx 30rpx;
            .img_aq{
                width: 173rpx;
                height: 211rpx;
                margin-bottom: 20rpx;
            }
            .jiename{
                font-weight: bold;
                font-size: 36rpx;
                color: #111111;
            }
			.queli{
				margin: 30rpx;
				width: 100%;
				display: flex;
				justify-content: space-between;
				text{
					color: #333;
					font-size: 30rpx;
					font-weight: 500;
				}
			}
            .queren{
                font-weight: 400;
                font-size: 24rpx;
                color: #666666;
                display: block;
                margin: 40rpx 0 80rpx;
            }
            .chaka{
                padding: 30rpx;
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                background: #F6F7F9;
                border-radius: 16rpx;
                margin: 25rpx 0;
                .chaname{
                    font-weight: bold;
                    font-size: 28rpx;
                    color: #111111;
                }
                .phonenum{
                    display: block;
                    font-weight: bold;
                    font-size: 50rpx;
                    color: #F06047;
                    margin: 10rpx 0;
                }
                .xiugai{
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    .noben{
                        font-weight: 400;
                        font-size: 24rpx;
                        color: #666666;
                    }
                    .xiu{
                        font-weight: 400;
                        font-size: 24rpx;
                        color: #F06047;
                        display: inline-block;
                        margin-left: 6rpx;
                    }
                }
            }
            .dianbtn{
                height: 90rpx;
				background-color: #52443B;
                // background: linear-gradient(90deg, #FF8F39, #FF4D43);
                border-radius: 45rpx;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 100%;
                margin-top: 20rpx;
                .bm{
                    font-weight: bold;
                    font-size: 28rpx;
                    color: #FFFFFF;
                }
                .bmmaio{
                    font-weight: 500;
                    font-size: 20rpx;
                    color: #FFFFFF;
                }
            }
            .bzhang{
                display: flex;
                flex-direction: row;
                align-items: center;
                margin-top: 30rpx;
                .icon_ts{
                    margin-right: 6rpx;
                    width: 24rpx;
                    height: 24rpx;
                }
                .zhiname{
                    font-weight: 400;
                    font-size: 20rpx;
                    color: #F06047;
                }
            }
        }
    }
	.dione{
			background: #FFFFFF;
			border-radius: 12px;
			/* padding: 15px; */
			display: flex;
			flex-direction: column;
			margin: 12px;
			width: 100%;
			border: 1px solid #eee;
			padding: 10px;			
			.dihead{
				display: flex;
				flex-direction: row;
				
			}
			.mo{
				background: #FD2A53;
				border-radius: 3rpx;
				padding: 1rpx 4rpx;
				font-weight: 500;
				font-size: 20rpx;
				color: #FFFFFF;
				display: inline-block;
				margin-right: 10rpx;
			}
			.jia{
				background: #4D88FE;
			}
			
		}
		.diname{
			font-weight: bold;
			font-size: 32rpx;
			color: #222222;
			display: flex;
			align-items: center;
			margin: 15rpx 0 15rpx;
			.dinametxt{
				display: inline-block;
				max-width: 94%;
			}
		}
		.dimiao{
			font-weight: 500;
			font-size: 26rpx;
			color: #222222;
		}
</style>
